using System;

using Supremacy.Buildings;

namespace Supremacy.Universe
{
    public static class ColonyHelper
    {
        public static bool IsBuildLimitReached(Colony colony, BuildingDesign buildingDesign)
        {
            if (colony == null)
                throw new ArgumentNullException("colony");

            return colony.HasBuilding(buildingDesign) ||
                   colony.IsBuilding(buildingDesign);
        }
    }
}